import { http } from "@/utils/http";

export const DeleteMessage = (
	data: Eps.Internal_PushMessageService.DeleteMessage_Params = {}
): Promise<Eps.Internal_PushMessageService.DeleteMessage> => {
	return http.post(`/Internal_PushMessageService/DeleteMessage`, Object.values(data));
};

export const GetMessages = (
	data: Eps.Internal_PushMessageService.GetMessages_Params = {}
): Promise<Eps.Internal_PushMessageService.GetMessages> => {
	return http.post(`/Internal_PushMessageService/GetMessages`, Object.values(data));
};

export const GetMessagesV2 = (
	data: Eps.Internal_PushMessageService.GetMessagesV2_Params = {}
): Promise<Eps.Internal_PushMessageService.GetMessagesV2> => {
	return http.post(`/Internal_PushMessageService/GetMessagesV2`, Object.values(data));
};

export const SetMessageReaded = (
	data: Eps.Internal_PushMessageService.SetMessageReaded_Params = {}
): Promise<Eps.Internal_PushMessageService.SetMessageReaded> => {
	return http.post(`/Internal_PushMessageService/SetMessageReaded`, Object.values(data));
};
